#include "mainwindow.h"
#include "login.h"
#include "signup.h"
#include "comlogin.h"
#include "comsignup.h"
#include "commain.h"
#include "comsettlement.h"
#include "comranking.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    comLogin::InitLogin();
    comSignUp::InitSignUp();
    comMain::InitMainWindow();
    comSettlement::InitSettlement();
    comRanking::InitRanking();
    comLogin::p_login->exec();
    if(comLogin::p_login->exec()==QDialog::Accepted){
        comMain::p_mainWindow->init();
        comMain::p_mainWindow->show();
        return a.exec();
    }
    else return 0;

}
